package com.erp.order.purchasing.controller;

import com.erp.hr.base.controller.BaseController;
import com.erp.hr.base.vo.ResultVO;
import com.erp.order.purchasing.model.QuotedPriceDetail;
import com.erp.order.purchasing.service.QuotedPriceDetailService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("web/quotedPriceDetail")
public class QuotedPriceDetailController extends BaseController {
    private Logger logger = LoggerFactory.getLogger(QuotedPriceDetailController.class);

    /*
    * 服务注入
    * */
    @Autowired
    private QuotedPriceDetailService quotedPriceDetailService;



    @RequestMapping("saveDetail")
    public void saveDetail() {
        QuotedPriceDetail quotedPriceDetail=new QuotedPriceDetail();
        quotedPriceDetail.setAnotherName("liu");
        quotedPriceDetail.setRespondRemark("remaakt");
        this.quotedPriceDetailService.saveData(quotedPriceDetail);
        Long s=quotedPriceDetail.getId();

            //this.quotedPriceDetailService.addCompleteData(quotedPriceDetails);


    }
}
